using System;
using MinimalistFoodStreet.BackEnd.Infrastructure.EFCore;
using MinimalistFoodStreet.BackEnd.Infrastructure.Dtos.Request.Tables;

namespace MinimalistFoodStreet.BackEnd.Server.Server.RequestExtend.Tables 
{
	public static class DictionaryTypesRequestCreateExtend 
	{
		public static DictionaryType ToCreateEntity(this RequestCreateDictionaryTypesDto dto)
		{
			return new DictionaryType 
			{

				DtName = dto.name,
				DtKey = dto.key,
				DtDescription = dto.description,
			};
		}
	}
}